import Http from "@/http";

export function pageApi(params:any) {
    return Http.post('deviceParamsField/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('deviceParamsField/update', params) : Http.post('deviceParamsField/add', params)
}

export function deleteApi(id) {
    return Http.delete('deviceParamsField/delete/' + id)
}

export function optionsApi() {
    return Http.get('deviceParamsField/options')
}